<template>
  <nav class="navbar">
    <div class="navbar-container">
      <div class="navbar-brand">For homework</div>
      <div class="navbar-links">
        <router-link to="/" class="navbar-link">个人主页</router-link>
        <router-link to="/about" class="navbar-link">个人成绩页面</router-link>
        <router-link to="/next" class="navbar-link">课程成绩页面</router-link>
      </div>
    </div>
  </nav>
  <router-view />
</template>

<style scoped>
.navbar {
  background-color: #007bff;
  color: #fff;
  padding: 10px 0;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  font-size: 24px;
}

.navbar-links {
  display: flex;
}

.navbar-link {
  margin-right: 20px;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
}

.navbar-link:hover {
  text-decoration: underline;
}
</style>
